/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package com.coffee.monitor.repository;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.coffee.monitor.entity.DataPoint;
import com.coffee.monitor.entity.DeviceGroup;
import com.coffee.monitor.entity.Sensor;

public interface DataPointDao extends PagingAndSortingRepository<DataPoint, Long> {
	List<DataPoint> findByUserId(Long userId);
	List<DataPoint> findBySensor(Sensor sensor);
}